#!/usr/bin/env bash
# git diff one commit

set -e

if [ ! $# -eq 1 ]; then
    echo "usage: gdiff <sha-code>"
    exit 1
fi

git diff $1^..$1

